package com.ls.pattern.establish.builder;

public class HouseDirector {
    private HouseBuilder houseBuilder = null;


    public House constructHouse() {
        houseBuilder.buildBisic();
        houseBuilder.buildWalls();
        houseBuilder.roofed();
        House house = houseBuilder.build();
        return house;
    }


    public HouseDirector(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public void setHouseBuilder(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }
}
